
<?php
 class Application_Model_Auth_Ulubione extends Zend_Db_Table_Abstract {
    protected $_name = 'favorites';
    
     public function addUlubione($iduser,$idmovie){
        $data = array(
             'iduser' => $iduser,
             'idmovie' => $idmovie
         );
         $this->insert($data);
    }
    
    public function deleteUlubione($id){
        $this->delete('idfavorite =' . (int)$id);
    }
    
 }